package top.xin1901.j2ecd.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.xin1901.j2ecd.common.response.R;

/**
 * @author HeYunjia
 */

@RestController
@CrossOrigin("*")
@RequestMapping("/login")
public class LoginController {


    @PostMapping
    public R login() {
        return R.success()
                .add("username", "直接登录成功的用户名");
    }
}
